import React,{ Suspense } from 'react';
import ReactDOM from 'react-dom';
import { renderRoutes } from 'react-router-config';
import { BrowserRouter } from 'react-router-dom';
import routes from './Route';
import './Assets/app.css'

ReactDOM.render(
  <BrowserRouter>
    <Suspense fallback={ <></> }>
        { renderRoutes(routes) }
    </Suspense>
  </BrowserRouter>,
  document.getElementById('root')
);
